using System.Collections;
using System.Collections.Generic;

namespace Magiq.Support {
    public class ListItemsAdder<T> : IItemsAdder<T> {
        private readonly IList list;

        public ListItemsAdder(IList list) {
            this.list = list;
        }

        public void Add(IEnumerable<T> items) {
            foreach (var item in items)
                list.Add(item);
        }
    }
}